// 订单相关
import request from '@/utils/request'
// 获取订单列表
export const getOrderList = params => {
        return request({
            method: 'get',
            url: '/order/list',
            params
        })
    }
    // 获取首页echarts数据
export const getHomeChartsData = () => {
    return request({
        method: 'get',
        url: '/order/totaldata'
    })
}

// 获取订单echarts数据
export const getOrderChartsData = params => {
    return request({
        method: 'get',
        url: '/order/ordertotal',
        params
    })
}